package com.heima.feigns.admin;

import com.heima.model.admin.pojos.AdChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("leadnews-admin")
public interface AdminFeign {
    /**
     * 查询所有频道列表
     * @return
     */
    @GetMapping("/api/v1/channel/findAllChannels")
    List<AdChannel> findAllChannels();
}
